/*-----------------------------------------------File Info------------------------------------------------
** File Name:               buzz.c  
** Last modified date:      2016.07.22
** Last version:            V0.1
** Description:             
**--------------------------------------------------------------------------------------------------------            
** Created date:            2016.09.07
** author:                  YLY
** Version:                 V0.1
** Descriptions:            蜂鸣器控制
**--------------------------------------------------------------------------------------------------------
*/
#ifndef __BUZZ_H__
#define __BUZZ_H__
#include "userConfig.h"

#if BEZZER_EN

typedef struct strBuzzerCtrl
{
	uint16_t time;				/* 响的时间 */
	uint16_t interval;			/* 时间间隔 */
	uint16_t freq;				/* 响的次数 */
}tsBuzzerCtrl;

/*  用户调用接口 */
extern void buzzStart(uint16_t timeMs, uint8_t freq);

#else
	#define buzzStart(x,y)
#endif

#endif	/* __BUZZ_H__ */

 

